package com.probiz.estore.system.dao.impl;

import java.util.List;

import com.probiz.estore.common.model.system.SystemVersion;
import com.probiz.estore.core.dao.impl.HibernateGenericDaoImpl;
import com.probiz.estore.system.dao.SystemVersionDao;


/**
 * SystemVersion Data Access Object (DAO) implementation.
 * Developer introduced interfaces should be declared here. Won't get overwritten.
*/
public class SystemVersionDaoImpl extends HibernateGenericDaoImpl<SystemVersion> implements SystemVersionDao {
	public SystemVersion getSystemVersion()
	{
		SystemVersion sv = null;
		List rs = this.findByHql("from SystemVersion order by id desc");
		if (!rs.isEmpty())
		{
			sv = (SystemVersion) rs.get(0);
		}
		return sv;
	}
}